package wt.hpad.utils;

import java.util.Random;

/**
 * Created by wt on 1.17.
 */

public class CommonUtil {

    public static long randomLong(int bound) {
        Random random = new Random(System.currentTimeMillis());
        int nextInt = random.nextInt(bound);
        return (long) nextInt;
    }

    public static int randomInt(int bound) {
        Random random = new Random(System.currentTimeMillis());
        int nextInt = random.nextInt(bound);
        return nextInt;
    }
}
